package org.skipper.common;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:包含统计参数的分页分装
 *
 * @author shoujian
 * Date: 2020-06-03
 * Time: 3:46 下午
 */
public class SummaryPage<T, V> extends PageResult<T> {

    private static final long serialVersionUID = 5583921243133467527L;

    /**
     * 列表统计
     */
    private V summary;

    public SummaryPage(Integer count, Integer pageNum, Integer pageSize, List<T> items) {
        super(count, pageNum, pageSize, items);
    }

    public V getSummary() {
        return summary;
    }

    public void setSummary(V summary) {
        this.summary = summary;
    }

    @Override
    public String toString() {
        return "SummaryPage [summary=" + summary + "]";
    }

}
